package com.glodon.paas.framework.registry.core.type;

import com.glodon.paas.framework.registry.core.status.ClientStatus;
import org.apache.zookeeper.data.Stat;

/**
 * @author Don Li
 */
public class ClientDetail {
    private String id;
    private String ip;
    private int port;
    private ClientStatus status;

    public ClientDetail(ClientBasic basic, Stat stat) {
        id = basic.getClientId();
        ip = basic.getIp();
        port = basic.getPort();
        status = basic.getClientStatus();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public ClientStatus getStatus() {
        return status;
    }

    public void setStatus(ClientStatus status) {
        this.status = status;
    }
}
